package com.cjh.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cjh.common.entity.Address;
import com.cjh.common.response.Result;

/**
 *
 */
public interface AddressService extends IService<Address> {
    Result getAllAddress(Integer id);

    Result addAddress(Address address);

    Result updateDefaultAddressById(Integer id,Integer defaultAddress,Integer userId);

    Result updateAddress(Address address);

    Result deleteAddress(Integer id);


    Result getDeafultAddress(Integer userId);
}
